x86/hvm: extend HVM cpuid leaf with vcpu id
authorPaul Durrant <paul.durrant@citrix.com>
Wed, 7 Jan 2015 10:08:49 +0000 (11:08 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 7 Jan 2015 10:08:49 +0000 (11:08 +0100)
commitdd9b0922663751cf3484f0e141ba887422ed15ec
treec3f878a3135032f94d7b1b5e975616d5e9d5de12
parent1bdc36a3b3e4ccd64702e7250094aa8d982e9412
x86/hvm: extend HVM cpuid leaf with vcpu id

To perform certain hypercalls HVM guests need to use Xen's idea of
vcpu id, which may well not match the guest OS idea of CPU id.
This patch adds vcpu id to the HVM cpuid leaf allowing the guest
to build a mapping.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/hvm.c
xen/include/public/arch-x86/cpuid.h